package cn.zktr.Personnel.model.service.tanyali;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONArray;

import cn.zktr.Personnel.model.dao.tanyali.EmaTSDao;
import cn.zktr.Personnel.model.mappers.tanyali.EmaTsMapper;
import cn.zktr.Personnel.model.pojos.PerEmaTs;


@Service
@Transactional(rollbackOn=Exception.class)
public class EmaTsService {

	@Autowired

	private EmaTSDao tsdao; 
	@Autowired
	private EmaTsMapper tsmer;
	
	
	public Iterable<PerEmaTs> selectFebAll(){
		return tsdao.findAll();
	}


	/**
	 * @return 招聘查询数据模糊查询
	 */
	public JSONArray zpshijuanchaxun(String outname) {
		return tsmer.zpshijuanchaxun("%"+outname+"%");
	}
	

	/**
	 * @return 培训查询数据模糊查询
	 */
	public JSONArray pxshijuanchaxun(String outname) {
		return tsmer.pxshijuanchaxun("%"+outname+"%");
	}
	


	/**
	 * @return 升职查询数据模糊查询
	 */
	public JSONArray szshijuanchaxun(String outname) {
		return tsmer.szshijuanchaxun("%"+outname+"%");
	}
	/**
	 * @return 升职试卷评分模糊查询
	 */
	public JSONArray shijuanpinfenchaxun(String empname) {
		return tsmer.shijuanpinfenchaxun("%"+empname+"%");
	}

}
